<!--<?php
include_once PrintEot('left');print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename&action=config" $cls_config>基本设置</a></li>
<li><a href="$basename&action=report" $cls_report>数据报告</a></li>
<!--
EOT;
if($action=='config'){print <<<EOT
-->
</ul>
<div class="c"></div>
<h3>统计说明</h3>
<div class="tr5">
		雅虎统计是一款第三方免费网站流量统计分析系统<br />
		通过统计分析大量数据, 结合网络营销,为您提供运营, 广告投放, 推广等决策依据<br />
		用户包括个人站长, 个人博主, 网站管理者, 第三方统计等<br />
<!--
EOT;
if($db_ystats_unit_id && empty($db_ystats_ymail)){print <<<EOT
-->
		绑定雅虎帐号可以登录雅虎平台，查看更详细的数据报告，你还没有绑定雅虎帐号，<a href="$basename&action=bind" style="color:blue">现在绑定</a><br />
<!--
EOT;
}elseif($db_ystats_unit_id && $db_ystats_ymail){print <<<EOT
-->
		你已经绑定雅虎帐号,现在就可以登录雅虎平台，查看更详细的数据报告，<a href="http://v3.tongji.cn.yahoo.com" style="color: blue" target="_blank">现在登录</a>
<!--
EOT;
}print <<<EOT
-->
		</div><br/>
<form name="FORM" action="$basename" method="post">
<input type="hidden" name="action" value="config" />
<input type="hidden" name="step" value="2" />
<h2>开启雅虎统计</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width="30%"><span class="xia2">是否开启雅虎统计</span></td>
		<td><input name="config[ifopen]" type="radio" value="0" {$ifopen_N}> 开启
		<input name="config[ifopen]" type="radio" value="1" {$ifopen_Y}> 关闭</td>
	</tr>
	<tr class="tr3">
		<td><span class="xia2">统计标识</span><br />选择前台标识显示的样式，但可能会存在延时问题。</td>
		<td><input name="config[style]" type="radio" value="1" $style_1> <img src="$imgpath/admin/ystaticon.gif">&nbsp;&nbsp;&nbsp;
		<input name="config[style]" type="radio" value="2" $style_2> 雅虎统计&nbsp;&nbsp;&nbsp;
		<input name="config[style]" type="radio" value="4" $style_4> Yahoo! Stat.&nbsp;&nbsp;&nbsp;
		<input name="config[style]" type="radio" value="5" $style_5> 不显示图标或文字</td>
	</tr>
</table>
<br /><center><input type="submit" class="btn" value="提 交"></center>
</form>
<!--
EOT;
}elseif($action=='report'){print <<<EOT
-->
</ul>
<div class="c"></div>
<form name="FORM" action="$basename" method="post">
<input type="hidden" name="action" value="report" />
<h2>数据报告</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td>选择时段:&nbsp;
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="colligate" $colligate /> 综合报告
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="thisweek" $thisweek /> 本周
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="lastweek" $lastweek /> 上周
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="thismonth" $thismonth /> 本月
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="last30" $last30 /> 最近30天
		<input type="radio" name="view" value="other" id="other" $other /> 任意月
		<select name="year" onClick="javascript:getObj('other').checked = true;">
<!--
EOT;
for($i=2007;$i<=$pwDate[year];$i++){print <<<EOT
-->
			<option value="$i" ${'year_'.$i}>$i</option>
<!--
EOT;
}print <<<EOT
-->
		</select>
		<select name="month" onClick="javascript:getObj('other').checked=true;">
			<option value="01" $month_01>01</option>
			<option value="02" $month_02>02</option>
			<option value="03" $month_03>03</option>
			<option value="04" $month_04>04</option>
			<option value="05" $month_05>05</option>
			<option value="06" $month_06>06</option>
			<option value="07" $month_07>07</option>
			<option value="08" $month_08>08</option>
			<option value="09" $month_09>09</option>
			<option value="10" $month_10>10</option>
			<option value="11" $month_11>11</option>
			<option value="12" $month_12>12</option>
		</select>
		<input type="button" class="btn" value="查看" style="margin-bottom:4px;" onClick="javascript:getObj('other').checked=true;document.FORM.submit();">
	</td></tr>
</table>
</form>
<!--
EOT;
if($view=='colligate'){print <<<EOT
-->
<h2>综合报告</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
<!--
EOT;
if($ystats[date_list]){print <<<EOT
-->
		<td>
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="740" height="260">
			<param name="movie" value="$imgpath/admin/ystats.swf" />
			<param name="FlashVars" value="data=$basename" />
			<param name="quality" value="high" />
			<embed WMODE="transparent" src="$imgpath/admin/ystats.swf" FlashVars="data=$basename" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="260"></embed>
			</object>
		</td>
<!--
EOT;
}else{print <<<EOT
-->
		<td align=center><font color="red"><b>对不起，该时段内无数据</b></font></td>
<!--
EOT;
}print <<<EOT
-->
	</tr>
</table>
<br />
<h2>网站流量</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td></td>
		<td width="25%"><b>PV</b></td>
		<td width="25%"><b>UV</b></td>
		<td width="25%"><b>IP</b></td>
	</tr>
	<tr class="tr3">
		<td>今日:</td>
		<td>{$ystats[today][pv]}</td>
		<td>{$ystats[today][uv]}</td>
		<td>{$ystats[today][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>昨日此时:</td>
		<td>{$ystats[yestoday_att][pv]}</td>
		<td>{$ystats[yestoday_att][uv]}</td>
		<td>{$ystats[yestoday_att][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>昨日:</td>
		<td>{$ystats[yestoday][pv]}</td>
		<td>{$ystats[yestoday][uv]}</td>
		<td>{$ystats[yestoday][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>预计今日:</td>
		<td>{$ystats[today_expect][pv]}</td>
		<td>{$ystats[today_expect][uv]}</td>
		<td>{$ystats[today_expect][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>平均每日:</td>
		<td>{$ystats[average_day][pv]}</td>
		<td>{$ystats[average_day][uv]}</td>
		<td>{$ystats[average_day][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>本月合计:</td>
		<td>{$ystats[sum_month][pv]}</td>
		<td>{$ystats[sum_month][uv]}</td>
		<td>{$ystats[sum_month][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>总量:</td>
		<td>{$ystats[sum_all][pv]}</td>
		<td>{$ystats[sum_all][uv]}</td>
		<td>{$ystats[sum_all][ip]}</td>
	</tr>
</table>
<!--
EOT;
}else{print <<<EOT
-->
<h2>时段:$sdate - $edate</h2>
	<tr class="tr3">
<!--
EOT;
if($ystats[date_list]){print <<<EOT
-->
		<td>
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="740" height="260">
			<param name="movie" value="$imgpath/admin/ystats.swf" />
			<param name="FlashVars" value="data=$basename&action=draw" />
			<param name="quality" value="high" />
			<embed WMODE="transparent" src="$imgpath/admin/ystats.swf" FlashVars="data=$basename&action=draw" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="260"></embed>
			</object>
		</td>
<!--
EOT;
}else{print <<<EOT
-->
		<td align=center><font color=red><b>对不起，该时段内无数据</b></font></td>
<!--
EOT;
}print <<<EOT
-->
	</tr>
</table>
<br />
<h2>报表解读</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width='25%'><b>日期</b></td>
		<td width='25%'><b>PV(总访问量)</b></td>
		<td width='25%'><b>UV(总访客数)</b></td>
		<td width='25%'><b>IP</b></td>
	</tr>
	<tr class="tr3">
		<td>总计</td>
		<td>$sum_pv</td>
		<td>$sum_uv</td>
		<td>$sum_ip</td>
	</tr>
<!--
EOT;
foreach($ystats['date_list'] as $list){print <<<EOT
-->
	<tr class="tr3">
		<td>$list[value]</td>
		<td>$list[pv]</td>
		<td>$list[uv]</td>
		<td>$list[ip]</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}}elseif($action=='bind'){print <<<EOT
-->
<li><a href="$basename&action=bind" $cls_bind>绑定账号</a></li>
</ul>
<div class="c"></div>
<form name="FORM" action="$basename" method="post">
<input type="hidden" name="action" value="bind" />
<input type="hidden" name="step" value="2" />
<h2>绑定雅虎帐号</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width="30%"><span class="xia2">雅虎邮箱地址</span><br />请输入 yahoo.com.cn或yahoo.cn 邮箱地址</td>
		<td><input name="ymail" class="input" size="35"></td>
	</tr>
</table>
<br /><center><input type="submit" class="btn" value=" 我要绑定 "></center>
</form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->